﻿namespace RotovapPlatform.Domain.Equipment.Device.Robot.Dto;
public class RobotControlCommandDto
{
	// 机械手控制（功能码15）
	public bool StartProgram { get; set; }      // DI17: 启动程序
	public bool PauseProgram { get; set; }      // DI18: 暂停程序
	public bool ContinueProgram { get; set; }   // DI19: 继续运行程序
	public bool PowerOn { get; set; }           // DI20: 打开电源本体
	public bool PowerOff { get; set; }          // DI21: 关闭电源本体
	public bool Enable { get; set; }            // DI22: 机器人上使能
	public bool Disable { get; set; }           // DI23: 机器人下使能
	public bool ProtectiveStop { get; set; }    // DI24: 保护性停止
	public bool ClearError { get; set; }        // DI25: 清理故障
	public bool PowerOnSystem { get; set; }     // DI26: 打开电源本体
	public bool PowerOffSystem { get; set; }    // DI27: 关闭电源本体
	public bool RobotUp { get; set; }           // DI28: 机器人上使能
	public bool RobotDown { get; set; }         // DI29: 机器人下使能

	/// <summary>
	/// 默认构造函数，所有控制信号初始化为false
	/// </summary>
	public RobotControlCommandDto()
	{
		StartProgram = false;
		PauseProgram = false;
		ContinueProgram = false;
		PowerOn = false;
		PowerOff = false;
		Enable = false;
		Disable = false;
		ProtectiveStop = false;
		ClearError = false;
		PowerOnSystem = false;
		PowerOffSystem = false;
		RobotUp = false;
		RobotDown = false;
	}
}